package org.abio.XasML.core
{
	[DefaultProperty("content")]
	public class ContentControl extends Control
	{
		public function ContentControl()
		{
			super();
			this.addLogicalChild(this.Content);

			this.graphics.beginFill(0x123456);
			this.graphics.drawRect(0,0,100,100);
			this.graphics.endFill();
		}
		
		private var Content:DependencyObject=new DependencyObject();
		[ArrayElementType("org.abio.XasML.core.UIElement")]
		public function set content(value:UIElement):void{
			this.removeLogicalChild(this.Content);
			this.Content=value;
			this.addLogicalChild(this.Content);
		}
		public function get content():UIElement{
			return this.Content as UIElement;
		}
	}
}